<template>
  <div class="bg" ref="bg"></div>
</template>
<script setup lang="ts">
import { onMounted, ref } from 'vue'
const bg = ref(null)
onMounted(() => {
  console.log('=====>', window.canvasTools, bg.value)
  window.canvasTools.indexCanvas(7,bg.value)
  // window.canvasTools.randCanvas();
})
</script>
<style scoped>
.bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  z-index: 1000;
  /* background-color: #000; */
  top: 0px;
  left: 0px;
}
</style>
